package com.glory.hikvisionmobile.adapter;

import android.widget.TextView;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.hikvisionmobile.R;
import com.glory.hikvisionmobile.bean.TrackIn.PromptFankBean;
import com.glory.hikvisionmobile.customView.HikTabView;

import java.util.List;

/**
 * *****************************
 *
 * @Anthor yazhou
 * @Email 1184545990@qq.com
 * @Time 2020/1/9 19:12
 * @DESC *****************************
 */
public class PromptFankAdapter extends BaseQuickAdapter<PromptFankBean, BaseViewHolder> {

    public PromptFankAdapter(@Nullable List<PromptFankBean> data) {
        super(R.layout.adapter_prompt_fank, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, PromptFankBean item) {
        HikTabView hikTabView = helper.getView(R.id.hikTabView);
        String[] strings = new String[]{item.getWaferId(), item.getMhMax(), item.getBzVal(), item.getQcVal(), item.getFkVal()};
        hikTabView.setTabs(strings);
    }
}
